package com.cookor.poi.modules.weixin.account;

import com.xiaoleilu.hutool.util.StrUtil;

public class WeixinException extends Exception {

	private static final long serialVersionUID = 1L;

	public WeixinException(Throwable e) {
		super(e.getMessage(), e);
	}

	public WeixinException(String message) {
		super(message);
	}

	public WeixinException(String messageTemplate, Object... params) {
		super(StrUtil.format(messageTemplate, params));
	}

	public WeixinException(String message, Throwable throwable) {
		super(message, throwable);
	}

	public WeixinException(Throwable throwable, String messageTemplate, Object... params) {
		super(StrUtil.format(messageTemplate, params), throwable);
	}

}
